package cn.finedo.common;

import java.util.List;

public class PageDomain<T> extends BaseDomain {
    private static final long serialVersionUID = 1L;
    private int pageindex;
    private int rownumperpage;
    private int pagecount;
    private long rowcount;
    private List<T> datalist;

    public int getPageindex() {
        return this.pageindex;
    }

    public void setPageindex(int pageindex) {
        this.pageindex = pageindex;
    }

    public int getRownumperpage() {
        return this.rownumperpage;
    }

    public void setRownumperpage(int rownumperpage) {
        this.rownumperpage = rownumperpage;
    }

    public int getPagecount() {
        return this.pagecount;
    }

    public void setPagecount(int pagecount) {
        this.pagecount = pagecount;
    }

    public long getRowcount() {
        return this.rowcount;
    }

    public void setRowcount(long rowcount) {
        this.rowcount = rowcount;
    }

    public List<T> getDatalist() {
        return this.datalist;
    }

    public void setDatalist(List<T> datalist) {
        this.datalist = datalist;
    }

    public void setPageParam(PageParamDomain pp) {
        this.pageindex = pp.getPageindex();
        this.rownumperpage = pp.getRownumperpage();
    }
}
